package com.kuaidian.service;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kuaidian.dao.TCollectDaoMapper;
import com.kuaidian.pojo.Row;
import com.kuaidian.pojo.TCollect;

@Service
public class CollectService {

    private static Logger logger = Logger.getLogger(CollectService.class);  
	
    @Autowired
    private TCollectDaoMapper tCollectDaoMapper;
    

    
	public int insertCollect(TCollect collect) {
		return tCollectDaoMapper.insertCollect(collect);
	}



	public int deleteCollect(TCollect collect) {
		return tCollectDaoMapper.deleteCollect(collect);
		
	}



	public List<Row> selectCollection(TCollect collect, Integer startRow, Integer pageSize) {
		return tCollectDaoMapper.selectCollection(collect, startRow, pageSize);
	}

	   
}
